﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CityManager.aspx.cs" Inherits="Card.Manager.CityManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>城市站管理</title>
    <link href="Css/Style.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="TB">
        <tr>
            <td class="TD_Input_Text">
                省份：
            </td>
            <td class="TD_Input">
                <asp:DropDownList ID="dropProvince" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropProvince_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td class="TD_Input_Text">
                字母：
            </td>
            <td class="TD_Input">
                <asp:DropDownList ID="dropKey" AutoPostBack="true" runat="server" OnSelectedIndexChanged="dropKey_SelectedIndexChanged">
                    <asp:ListItem Value="">全部</asp:ListItem>
                    <asp:ListItem Selected Value="A">A</asp:ListItem>
                    <asp:ListItem Value="B">B</asp:ListItem>
                    <asp:ListItem Value="C">C</asp:ListItem>
                    <asp:ListItem Value="D">D</asp:ListItem>
                    <asp:ListItem Value="E">E</asp:ListItem>
                    <asp:ListItem Value="F">F</asp:ListItem>
                    <asp:ListItem Value="G">G</asp:ListItem>
                    <asp:ListItem Value="H">H</asp:ListItem>
                    <asp:ListItem Value="J">J</asp:ListItem>
                    <asp:ListItem Value="K">A</asp:ListItem>
                    <asp:ListItem Value="L">L</asp:ListItem>
                    <asp:ListItem Value="M">M</asp:ListItem>
                    <asp:ListItem Value="N">N</asp:ListItem>
                    <asp:ListItem Value="P">P</asp:ListItem>
                    <asp:ListItem Value="Q">Q</asp:ListItem>
                    <asp:ListItem Value="R">R</asp:ListItem>
                    <asp:ListItem Value="S">S</asp:ListItem>
                    <asp:ListItem Value="T">T</asp:ListItem>
                    <asp:ListItem Value="W">W</asp:ListItem>
                    <asp:ListItem Value="X">X</asp:ListItem>
                    <asp:ListItem Value="Y">Y</asp:ListItem>
                    <asp:ListItem Value="Z">Z</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center" class="TD_Input">
                <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" />
                <input id="btnAdd" type="button" onclick="javascript:window.location='CityEdit.aspx';"
                    value="添加" />
            </td>
        </tr>
        <%--<tr>
            <td colspan="4" class="TD_Input">
                <span style="float: right">显示条数：
                    <asp:TextBox ID="txtRecords" runat="server" Text="50" MaxLength="3" CssClass="Input_Short"></asp:TextBox>
                </span>
            </td>
        </tr>--%>
        <tr>
            <td colspan="4">
                <asp:Repeater ID="rptList" runat="server">
                    <HeaderTemplate>
                        <table class="TB">
                            <tr class="TB_Header">
                                <td style="width: 60px">
                                    排序
                                </td>
                                <td>
                                    代码
                                </td>
                                <td>
                                    名称
                                </td>
                                <td>
                                    字母
                                </td>
                                <td>
                                    网址
                                </td>
                                <td>
                                    是否开启
                                </td>
                                <td>
                                    操作
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="TB_Item">
                            <td>
                                <asp:TextBox ID="txtSort" runat="server" MaxLength="4" Width="50px" Text='<%# Eval("SORT") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblCode" runat="server" Text='<%# Eval("LOOKUP_CODE") %>'></asp:Label>
                            </td>
                            <td>
                                <%# Eval("VALUE") %>
                            </td>
                            <td>
                                <%# Eval("ATTRIBUTE2") %>
                            </td>
                            <td>
                                <%# Eval("TEXT_VALUE") %>
                            </td>
                            <td>
                                <%# Eval("ATTRIBUTE3") %>
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="javascript:return confirm('确定删除该城市？');" CommandName="DELETE" CommandArgument='<%# Eval("LOOKUP_CODE") %>'></asp:LinkButton>|<a
                                    href="CityEdit.aspx?c=<%# Eval("LOOKUP_CODE") %>">编辑</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="TB_Alter">
                            <td>
                                <asp:TextBox ID="txtSort" runat="server" MaxLength="4" Width="50px" Text='<%# Eval("SORT") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblCode" runat="server" Text='<%# Eval("LOOKUP_CODE") %>'></asp:Label>
                            </td>
                            <td>
                                <%# Eval("VALUE") %>
                            </td>
                            <td>
                                <%# Eval("ATTRIBUTE2") %>
                            </td>
                            <td>
                                <%# Eval("TEXT_VALUE") %>
                            </td>
                            <td>
                                <%# Eval("ATTRIBUTE3") %>
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除"  OnClientClick="javascript:return confirm('确定删除该城市？');"  CommandName="DELETE" CommandArgument='<%# Eval("LOOKUP_CODE") %>'></asp:LinkButton>|<a
                                    href="CityEdit.aspx?c=<%# Eval("LOOKUP_CODE") %>">编辑</a>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                        <tr>
                            <td colspan="7">
                                <asp:Button ID="btnSaveSort" runat="server" CommandName="SAVEALL" Text="保存排序" />
                            </td>
                        </tr>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
